package com.jinmdz.fmis.api.admin.service;

import com.jinmdz.fmis.api.base.BaseService;
import com.jinmdz.fmis.core.base.BaseResult;
import com.jinmdz.fmis.dao.admin.dao.BusinessSystemDao;
import com.jinmdz.fmis.dao.admin.model.businesssystem.BusinessSystemListItem;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

/**
 * 业务系统维护Service
 *
 * @author LiCongLu
 * @date 2020-03-18 11:07
 */
@Service("businessSystemService")
public class BusinessSystemService extends BaseService {

    @Resource
    private BusinessSystemDao businessSystemDao;

    /**
     * 根据查询条件加载表【business_system】中保存的业务系统数据
     *
     * @param
     * @return
     * @author LiCongLu
     * @date 2020-03-18 11:06
     */
    public BaseResult<ArrayList<BusinessSystemListItem>> loadBusinessSystemList() {
        ArrayList<BusinessSystemListItem> listItems = businessSystemDao.listBusinessSystemList();
        return successList(listItems);
    }
}
